package com.sgb.kjwl.model.entity;

import com.sgb.kjwl.model.entity.user.ServerAttrValue;
import com.sgb.kjwl.model.entity.user.SkuItemAttrEntity;

import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 */
public class GoodsSkuDetailEntity implements Serializable {
    private String brandName;
    private List<String> images;
    public List<VideoBean> videoList;
    public double lowestBuy;
    private ItemAttr itemAttr;
    private String sellArea;
    private String itemDetail;
    private String updateTime;
    private String cartTitle;
    private String tax;
    private String itemDesc;
    private CheckedItemAttr checkedItemAttr;
    private String playUrl;
    public String playUrlImg;
    private String storageName;
    private String updateTimeStr;
    private String unit;
    private String areaName;
    private String createTime;
    private String playDuration;
    private String price;
    public String vipPrice;
    public String promotePrice;//默认促销价
    private String id;
    private String shopId;
    private boolean sku;
    private String priceScope;
    private String createTimeStr;
    private String latitude;
    private String longitude;
    public int commodityType; // 商品类型 1：现货 2：期货,
    public String deliveryTime;// 货期到期时间数,
    public int deliveryTimeUnit; // :货期时间 单位 1：天 2：月
    private int status;
    private String selfSupportTag;//0非自营 1自营
    private String itemTitleUrl;//其他信息
    public String isCompanyMember;//是否是当前企业会员 0-不是会员 1-是会员
    public String isOpenAccount;//1开通企业钱包 0未开通企业钱包

    private List<Params> params;
    private List<ServerAttrValue> itemServerAttrVals;

    public List<ServerAttrValue> getItemServerAttrVals() {
        return itemServerAttrVals;
    }

    public void setItemServerAttrVals(List<ServerAttrValue> itemServerAttrVals) {
        this.itemServerAttrVals = itemServerAttrVals;
    }

    public String getUpdateTimeStr() {
        return updateTimeStr;
    }

    public void setUpdateTimeStr(String updateTimeStr) {
        this.updateTimeStr = updateTimeStr;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getSelfSupportTag() {
        return selfSupportTag;
    }

    public void setSelfSupportTag(String selfSupportTag) {
        this.selfSupportTag = selfSupportTag;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public List<Params> getParams() {
        return params;
    }

    public void setParams(List<Params> params) {
        this.params = params;
    }

    public String getItemTitleUrl() {
        return itemTitleUrl;
    }

    public void setItemTitleUrl(String itemTitleUrl) {
        this.itemTitleUrl = itemTitleUrl;
    }

    public static class ItemAttr implements Serializable {
        private List<SkuCheckEntity> check;
        private List<SkuItemAttrEntity> sku;

        public List<SkuCheckEntity> getCheck() {
            return check;
        }


        public List<SkuItemAttrEntity> getSku() {
            return sku;
        }

        public void setSku(List<SkuItemAttrEntity> sku) {
            this.sku = sku;
        }

        public void setCheck(List<SkuCheckEntity> check) {
            this.check = check;
        }
    }

    public static class VideoBean implements Serializable {
        /**
         * playUrl : https://outin-684db67b523111ea845700163e00b174.oss-cn-shanghai.aliyuncs.com/f727dfc01f85494da9759c9ba0fed83b/463bf363b2a5422ba9449a20e7e1777d-e217c620c5d74ea83ad1d8941a2c6089-ld.mp4?Expires=1607510375&OSSAccessKeyId=LTAI3DkxtsbUyNYV&Signature=3bSzUCGhHjmhR0iuctLk9rkihCs%3D
         * playUrlImg : http://outin-684db67b523111ea845700163e00b174.oss-cn-shanghai.aliyuncs.com/f727dfc01f85494da9759c9ba0fed83b/snapshots/0f6b37acc04244d4876c242319f61286-00001.jpg?Expires=1607510375&OSSAccessKeyId=LTAI3DkxtsbUyNYV&Signature=Xg%2Foc6R%2F3dn8OESpQvEEdMEXS60%3D
         * time : 00:07
         * type : 1
         * videoName : 鱼
         * vodId : f727dfc01f85494da9759c9ba0fed83b
         */
        public String playUrl;
        public String playUrlImg;
        public String time;
        public int type;
        public String videoName;
        public String vodId;
    }

    public static class Params implements Serializable {
        public String k;
        public String v;
    }

    public static class CheckedItemAttr implements Serializable {
        private List<SkuCombinationEntity> list;

        public List<SkuCombinationEntity> getList() {
            return list;
        }

        public void setList(List<SkuCombinationEntity> list) {
            this.list = list;
        }
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public ItemAttr getItemAttr() {
        return itemAttr;
    }

    public void setItemAttr(ItemAttr itemAttr) {
        this.itemAttr = itemAttr;
    }

    public String getSellArea() {
        return sellArea;
    }

    public void setSellArea(String sellArea) {
        this.sellArea = sellArea;
    }

    public String getItemDetail() {
        return itemDetail;
    }

    public void setItemDetail(String itemDetail) {
        this.itemDetail = itemDetail;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCartTitle() {
        return cartTitle;
    }

    public void setCartTitle(String cartTitle) {
        this.cartTitle = cartTitle;
    }

    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public CheckedItemAttr getCheckedItemAttr() {
        return checkedItemAttr;
    }

    public void setCheckedItemAttr(CheckedItemAttr checkedItemAttr) {
        this.checkedItemAttr = checkedItemAttr;
    }

    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPlayDuration() {
        return playDuration;
    }

    public void setPlayDuration(String playDuration) {
        this.playDuration = playDuration;
    }

    public String getPrice() {
        if (price == null) {
            return "0.00";
        }
        if ("".equals(price)) {
            return "0.00";
        }
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public boolean isSku() {
        return sku;
    }

    public void setSku(boolean sku) {
        this.sku = sku;
    }

    public String getPriceScope() {
        return priceScope;
    }

    public void setPriceScope(String priceScope) {
        this.priceScope = priceScope;
    }
}
